﻿using GSPatEditor.Simulator;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GSPatEditor.Pat
{
    enum ActorGeneratorInitType
    {
        Shot = 1,
    }

    class ActorGenerator
    {
        private PatProject project;
        public ActorGeneratorInitType Type;
        public int ActionName;

        public ActorGenerator(PatProject project)
        {
            this.project = project;
        }

        public void SetupActor(Simulator.Actor actor)
        {
            switch (Type)
            {
                case ActorGeneratorInitType.Shot:
                    actor.InitShot();
                    break;
                default:
                    break;
            }
            var action = project.ActionList[ActionName];
            action.BeginAction(actor);
        }
    }
}
